// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import configuration from "./Configuration"
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import lang from 'element-ui/lib/locale/lang/zh-CN'
import bianmabaStore from "./bianmaba-exteneds/plugins/bianmaba-store"
Vue.use(bianmabaStore)



import auth from "./bianmaba-exteneds/plugins/bianmaba-auth"
Vue.use(auth, {router: router,loginUrl:configuration.LOGIN_URL})

import http from "./bianmaba-exteneds/plugins/bianmaba-ajax"
Vue.use(http, {
  baseURL: configuration.DATA_BASE_URL,
  headers: {request_type: 'ajax'}
})

Vue.config.devtools = true
Vue.config.productionTip = true
Vue.use(ElementUI, {lang})

let vue = new Vue({
  el: '#app',
  template: '<App/>',
  components: {App},
  router,
  mounted() {
  },
  methods: {}
})

